#include <GL/gl.h>
#include <GL/glu.h>
#include "AppTestYellowView.h"

AppTestYellowView::AppTestYellowView(){
}

void AppTestYellowView::displayFront(){
  glBegin(GL_QUADS);
  glColor3ub(255, 255, 0);
  glVertex3d(-1, 0, 0);
  glVertex3d(-1, 2, 0);
  glVertex3d(1, 2, 0);
  glVertex3d(1, 0, 0);
  glEnd();
}

void AppTestYellowView::displayBack(){
  this->displayFront();
}

void AppTestYellowView::transitive(float percent){
  this->displayFront();
}

AppTestYellowView::~AppTestYellowView(){

}


extern "C" AppTestYellowView* create_view() {
    return new AppTestYellowView;
}

extern "C" void destroy_view(AppTestYellowView* p) {
    delete p;
}

